<?php
session_start();
require_once('../ns_html.class.php');

if (isset($_POST['registrationSubmit']))
{
    echo $_POST['username'] . "<br />";
    echo $_POST['password'] . "<br />";
    echo $_POST['firstName'] . "<br />";
    echo $_POST['lastName'] . "<br />";
    echo $_POST['email'] . "<br />";
    echo $_POST['phone'] . "<br />";
    $html->nsDatabase->createNewUser($_POST['username'], $_POST['password'], $_POST['firstName'], $_POST['lastName'], $_POST['email'], $_POST['phone']);
    
} else {
    header("Location: register.php");
}
?>
